home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds208.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  387 b   |  21 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS208 : 円
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned char *GDS_append(unsigned char *wp,unsigned int size);
  12.  
  13. void GDS_circle(unsigned char *wp,signed int x1,signed int y1,signed int r) {
  14.  
  15.    wp=GDS_append(wp,8);
  16.    *(unsigned int *)(wp+0)=0x4000+12*32+6;
  17.    *(signed int *)(wp+2)=x1;
  18.    *(signed int *)(wp+4)=y1;
  19.    *(signed int *)(wp+6)=r;
  20. }
  21.